CC	= g++
CFLAGS	= -I/usr/include/mysql -L/usr/lib/mysql -I../libpaysql -L../libpaysql -I../httplite -L../httplite
CLIBS	= -lpaysql -lmysqlclient -lm -lhttp

all: makebatch

test:
	$(CC) $(CFLAGS) -o test test.C $(CLIBS)

testXML:
	$(CC) -I../lib/ $(CFLAGS) -o testXML testXML.cpp $(CLIBS) ../lib/libapp.a

test2:
	$(CC) $(CFLAGS) -I../libauth -L../libauth -L../libcheck -L../libipriv -L../lib -o test2 test2.C -lauth $(CLIBS) -lcheck -lssl -lipriv -lapp

sendreq:
	$(CC) $(CFLAGS) -o sendreq sendreq.C $(CLIBS)

reqbatch:
	$(CC) $(CFLAGS) -o reqbatch reqbatch.C $(CLIBS)

makebatch:
	$(CC) $(CFLAGS) -o makebatch makebatch.C $(CLIBS)

testHTTP:
	$(CC) -I../httplite/ $(CFLAGS) -o testHTTP testHTTP.cpp $(CLIBS) ../httplite/libhttp.a -lssl

testsess:
	$(CC) $(CFLAGS) -I../lib -L../lib -o testsess testSess.cpp $(CLIBS) ../lib/libapp.a
